Mastering iOS Frameworks: Beyond the Basics, 2e (Developer's Library) by Kyle Richter & Joe Keeley
Author:Kyle Richter & Joe Keeley [Richter, Kyle]
Language: eng
Format: azw3
Publisher: Addison-Wesley Professional
Published: 2015-04-26T16:00:00+00:00
Click here to view code image
if (![UIPrintInteractionController isPrintingAvailable])
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"This device does not support printing!" delegate:nil cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];
[alert show];
}
* * *
Note
AirPrint is defined as part of UIKit so there are no additional headers or frameworks that need to be imported.
* * *
Printing Text
Printing text is probably the most common use case for not just AirPrint but any kind of print job. Using AirPrint to print text can be complex if you aren’t familiar with printing terminology. The following code is from the ICFFirstViewController.m class of the sample app. Look at it as a whole first; later in this section, it will be broken down by each line and discussed.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6542)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6429)
Kotlin in Action by Dmitry Jemerov(5077)
Odoo 15 Development Essentials - Fifth Edition by Daniel Reis & Greg Mader(3421)
Odoo 15 Development Essentials by Daniel Reis(2824)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2542)
Learning Angular - Second Edition by Christoffer Noring(2367)
Pride and Prejudice by Jane Austen(2357)
Mobile Forensics Cookbook by Igor Mikhaylov(2029)
Computers For Seniors For Dummies by Nancy C. Muir(2015)
Bulletproof Android: Practical Advice for Building Secure Apps (Developer's Library) by Godfrey Nolan(1879)
Android Development with Kotlin by Marcin Moskala & Igor Wojda(1809)
Building Android UIs with Custom Views by Raimon Ràfols Montané(1798)
1936941139 (N) by Bob Rosenthal(1742)
Building Progressive Web Apps: Bringing the Power of Native to the Browser by Ater Tal(1735)
Hands-On Internet of Things with MQTT by Tim Pulver(1720)
Android App Development by Franceschi Hervé J.;(1719)
Ember.js in Action by Joachim Haagen Skeie(1696)
Hands-On Design Patterns with React Native by Mateusz Grzesiukiewicz(1660)
